<script type="text/javascript">
	$menu = {
		edit : function(e) {
			var text, json, li;
			li = $(e).parent('li');
			text = li.attr('data');
			text = decodeURIComponent(text);
			json = $.parseJSON(text);
			console.log(json);
		},
		remove : function(e) {
			var text, json, li;
			li = $(e).parent('li');
			text = li.attr('data');
			text = decodeURIComponent(text);
			json = $.parseJSON(text);
			console.log(json);
		}
	};
</script>
<?php echo Menu::factory($menu) -> renderConfigure(); ?>
